import defaultSettings from '@/settings'
import i18n from '@/i18n'


const title = defaultSettings.title || '后台'
/*
  getPageTitle 已进行国际化
 */
// console.log('i18ni18ni18ni18ni18n::',i18n.t('base.add'));
export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    let pageTitleLang = i18n.t(`menu.${pageTitle}`)
    return `${pageTitleLang} - ${title}`
  }
  return `${title}`
}
